﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HPIT_LiuzuPoint.Entity.DTOModel
{
    public class OperateResult
    {
        public ResultSatae State { get; set; }

        public string Message { get; set; }

        public object Data { get; set; }

        public OperateResult(ResultSatae state, string msg)
        {
            this.State = state;
            this.Message = msg;
        }

        public OperateResult(ResultSatae state, string msg,object data)
        {
            this.State = state;
            this.Message = msg;
            this.Data = data;
        }
    }
}

public enum ResultSatae
{
    Success = 1,
    Error = -1
}
